import { getZIndex } from '../internal/mixins/popup/utils';
export default {
  name: 'co-toast',
  functional: true,
  render (h, { data, children }) {
    data.staticClass = `co-toast ${data.staticClass || ''}`;
    data.style = {
      ...(data.style || {}),
      'z-index': getZIndex()
    };
    return h('div', data, children);
  }
};
